<?php
/**
 * Created by PhpStorm.
 * User: dev
 * Date: 15/10/14
 * Time: 1:18 PM
 */



class Location_Modal_Set_Controller extends Base_Controller {

    public $restful = true;

    public function __construct()
    {
        parent::__construct();
        //--Your Code --//
        $this->theme->set_theme("default") ;
    }

    public function get_index($parent_id = 0){

        $data['parent_location'] = Locations::parent($parent_id)->take(40)->get();
        $data['child_location'] = Locations::where('parent_id', '!=', 0)->take(80)->get();

        return View::make('Location::modal.setlocation',$data);
    }

} 